package com.youli.gb.model;

import java.io.Serializable;

public class SysUser implements Serializable{
	
	private static final long serialVersionUID = 1L;
	
	private int id;
	private String userName;
	private String loginName;
	private String email;
	private String phone;
	private String password;
	private int roleId;
	private String gender;
	//映射到数据表中role_id字段
	//private SysRole role;
	
	
	
	
	
	
	
	
	
	public SysUser() {
		super();
	}
	public SysUser(int id, String userName, String loginName, String email, String phone, String password, int roleId,
			String gender, SysRole role) {
		super();
		this.id = id;
		this.userName = userName;
		this.loginName = loginName;
		this.email = email;
		this.phone = phone;
		this.password = password;
		this.roleId = roleId;
		this.gender = gender;
		//this.role = role;
	}
	
	public SysUser(String userName, String loginName, String email, String phone, String password, int roleId,
			String gender) {
		super();
		this.userName = userName;
		this.loginName = loginName;
		this.email = email;
		this.phone = phone;
		this.password = password;
		this.roleId = roleId;
		this.gender = gender;
	}
	public SysUser(String userName, String loginName, String email, String phone, String password, int roleId,
			String gender, SysRole role) {
		super();
		this.userName = userName;
		this.loginName = loginName;
		this.email = email;
		this.phone = phone;
		this.password = password;
		this.roleId = roleId;
		this.gender = gender;
		//this.role = role;
	}
	public int getId() {
		return id;
	}
	public void setId(int id) {
		this.id = id;
	}
	public String getUserName() {
		return userName;
	}
	public void setUserName(String userName) {
		this.userName = userName;
	}
	public String getLoginName() {
		return loginName;
	}
	public void setLoginName(String loginName) {
		this.loginName = loginName;
	}
	public String getEmail() {
		return email;
	}
	public void setEmail(String email) {
		this.email = email;
	}
	public String getPhone() {
		return phone;
	}
	public void setPhone(String phone) {
		this.phone = phone;
	}
	public String getPassword() {
		return password;
	}
	public void setPassword(String password) {
		this.password = password;
	}
	public int getRoleId() {
		return roleId;
	}
	public void setRoleId(int roleId) {
		this.roleId = roleId;
	}
	public String getGender() {
		return gender;
	}
	public void setGender(String gender) {
		this.gender = gender;
	}
//	public SysRole getRole() {
//		return role;
//	}
//	public void setRole(SysRole role) {
//		this.role = role;
//	}
	public static long getSerialversionuid() {
		return serialVersionUID;
	}
	@Override
	public String toString() {
		return "SysUser [id=" + id + ", userName=" + userName + ", loginName=" + loginName + ", email=" + email
				+ ", phone=" + phone + ", password=" + password + ", roleId=" + roleId + ", gender=" + gender + "]";
	}
	
	
	
	
}
